package com.kyrie.lib_sys.application.syslogApplys;


import com.kyrie.lib_sys.annotation.logAnnotation.LogRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface LogRecordMapper {
    
    /**
     * 插入日志记录
     * @param logRecord 日志记录
     */
    @Insert("INSERT INTO sys_log (module, operation_type, description, class_name, method_name, " +
            "params, result, status, error_msg, operator, request_ip, request_url, cost_time, create_time) " +
            "VALUES (#{module}, #{operationType}, #{description}, #{className}, #{methodName}, " +
            "#{params}, #{result}, #{status}, #{errorMsg}, #{operator}, #{requestIp}, #{requestUrl}, #{costTime}, #{createTime})")
    void insert(LogRecord logRecord);

}
